//
//  pchfile.swift
//  weibo
//
//  Created by 孙亚东 on 16/6/23.
//  Copyright © 2016年 Sunyadong. All rights reserved.
//

import UIKit
import SnapKit
import AFNetworking
import SDWebImage
import SVProgressHUD

let screenWidth = UIScreen.mainScreen().bounds.size.width
let screenHeight = UIScreen.mainScreen().bounds.size.height
let kUIScreenSize = UIScreen.mainScreen().bounds.size
let kUIScreenBounds = UIScreen.mainScreen().bounds

//MARK:-- 授权认证的一些信息
//let AppKey = "3950016492"
//let AppSecret = "1e85b0fd1e7dfc47d2391cc852a212d6"
//let AppRedirectURL = "http://www.baidu.com"
//let access_token="2.00Ds4CFC7jr__E634de1aa1004uR8J"
//https://api.weibo.com/oauth2/authorize?client_id=3950016492&redirect_uri=http://www.baidu.com
// https://api.weibo.com/oauth2/authorize?client_id=1284491449&redirect_uri=http://www.itheima.com


//
//let AppKey = "612414931"
//let AppSecret = "0b8f332053579cc33470daa74405d9fa"
//let AppRedirectURL = "http://www.itcast.cn"




let AppKey = "731914110"
let AppSecret = "cae7aee50b131eee1428cf9898f0896c"
let AppRedirectURL = "http://www.baidu.com"

/// RGB颜色
func RGB(r r: CGFloat, g: CGFloat, b: CGFloat) -> UIColor {
    return UIColor(red: r / 255, green: g / 255, blue: b / 255, alpha: 1)
}

func RandomColor() -> UIColor {
    
    return RGB(r: CGFloat(random()) % 255, g: CGFloat(random()) % 255, b: CGFloat(random()) % 255)
}
